import request from '../../../../../public/js/common/api/api.js';
const UserUrl = `${Utils.CurDomain.SysAuthUrl}`;
const JobURL = Utils.CurDomain.JobUrl;
const AccountUrl = Utils.CurDomain.AccountUrl;

const configuration = {
    contentType: 'application/json',
    dataType: 'json',
    async: true,
    dataFilter(data, type) {
        return data;
    }
}

export default class RecruitAPI {
    // 评估列表
    static jobAslist(data) {
        return request.post(`${JobURL}/jobcvs/aslist`, data, true);
    }
    // 获取登录用户对应的职员信息 
    static getLoginUserToStaff() {
        return request.get(`${AccountUrl}/accounts/eply`);
    }
    // 新增评估消息
    static jobAssess(data) {
        return request.post(`${JobURL}/jobcvs/assess`, data, true);
    }

    static editAssess(id, seq, data) {
        return request.put(`${JobURL}/jobcvs/${id}/assess/${seq}`, data, true);
    }

}